﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="AdminRegions.aspx.cs" Inherits="EHTWebsiteProject.Administrator.AdminRegions" %>
<%@ Register src="../Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
<div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-article.png" /></td>
                <td><asp:Label ID="lbRegions" runat="server" Text="Quản lý Regions" ></asp:Label></td>
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                                                                       
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgEdit" ImageUrl="~/images/EHTgiaodien/icon-32-edit.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" onclick="ImgEdit_Click" 
                                />  <br />                                                                      
                            <asp:Label ID="lbEdit" runat="server" Text="Sửa"></asp:Label> 
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">
                        <a href="AdminRegionsUI.aspx">
                            <img alt="" src="../images/EHTgiaodien/icon-32-new.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                        </a>
                    </div>
                </td>            
                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
<div style="color:Red; font-size:12px; font-family:Arial">
    <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
</div> 
 <asp:Repeater ID="rpRegions" runat="server">
        <HeaderTemplate>
            <table cellspacing="0" cellpadding="0" class="data-table">
                <thead>
                    <tr>
                        <th class="actions edit">
                            <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                        </th>
                        <th class="actions delete">
                             Edit
                        </th>
                        <th>
                            Navn
                        </th>
                        <th>
                            Region Kode
                        </th>
                        <th>
                           Tjenesten Cost
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td class="actions edit">
                    <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("RegionID")%>'></asp:Label>
                </td>
                <td class="actions delete">
                   <a href='AdminRegionsUI.aspx?RegionID=<%#Eval("RegionID")%>'>
                        <img alt="Edit" src="/Styles/Edit.png"></a>
                </td>
                <td>
                    <%#Eval("RegionName") %>
                </td>
                <td>
                      <%#Eval("RegionCode") %>
                </td>
                <td>
                      <%#Eval("ServiceCost") %>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>

    <div style="padding:5px; text-align:center">
        
        <uc1:PaggingControl ID="PaggingControl1" PageSize="20" runat="server" />
        
    </div>
</asp:Content>
